package cn.psvmc.cxzapi.mapper.goods;

import cn.psvmc.cxzapi.config.mybatisplus.mapper.MyBaseMapper;
import cn.psvmc.cxzapi.model.goods.TGoodsLogistics;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.Map;

/**
 * 商品物流表 Mapper 接口
 * @Author auto
 * @Date 2024-08-13
 */
public interface TGoodsLogisticsMapper extends MyBaseMapper<TGoodsLogistics> {
    //根据商品id获取物流信息
    Map<String, Object> findByGoodsId(@Param("goodsId") Integer goodsId);

    //删除物流信息
    void deleteByGoodsId(@Param("goodsId") Integer goodsId);

    //复制商品物流信息
    void copyGoodsLogistics(@Param("goodsId") Integer goodsId, @Param("id") Integer id, @Param("createid") Integer createid, @Param("createtime") LocalDateTime now);
}
